<div id="menu">
	<ul>
		<?php
			$i=0;
			$l = count($menu) - 1;
			foreach ($menu as $k => $m) {
				$class = ($i==0) ? ' first':'';
				$class .= ($i==$l) ? ' last':'';
				$class .= ($k === $current) ? ' current_page_item' : '';
		?>
		<li class="<?php echo $class; ?>">
			<a href="<?php echo $this->Html->url($m['url']); ?>"><?php echo $m['text']; ?></a>
		</li>
		<?php 
				$i++;
			}
		?>
	</ul>
	<br class="clearfix" />
</div>